<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>07选择器续</title>
    <style>
        /*后代选择器*/
        /*body div div p{color: red}*/
        /*子元素选择器：不包含后代*/
        body>div>divp{color: red}
        /*伪类选择器：未访问/访问过/悬停/点击*/
        a:link{color: red}
        a:visited{color: green}
        a:hover{color: yellow}
        a:active{color: blue}
    </style>
</head>
<body>
<a href="">超链接1</a>
<a href="">超链接1</a>
<a href="">超链接1</a>
<p>p1</p>
<div><p>p2</p></div>
<div>
    <div><p>p3</p></div>
    <div>
        <p>p4</p>
        <div><p>p5</p></div>
    </div>
</div>
</body>
</html>